
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="robots" content="NONE,NOARCHIVE">
  <title>AttributeError at /problem/judge/api/receive_judge_result/86</title>
  <style type="text/css">
    html * { padding:0; margin:0; }
    body * { padding:10px 20px; }
    body * * { padding:0; }
    body { font:small sans-serif; }
    body>div { border-bottom:1px solid #ddd; }
    h1 { font-weight:normal; }
    h2 { margin-bottom:.8em; }
    h2 span { font-size:80%; color:#666; font-weight:normal; }
    h3 { margin:1em 0 .5em 0; }
    h4 { margin:0 0 .5em 0; font-weight: normal; }
    code, pre { font-size: 100%; white-space: pre-wrap; }
    table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
    tbody td, tbody th { vertical-align:top; padding:2px 3px; }
    thead th {
      padding:1px 6px 1px 3px; background:#fefefe; text-align:left;
      font-weight:normal; font-size:11px; border:1px solid #ddd;
    }
    tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
    table.vars { margin:5px 0 2px 40px; }
    table.vars td, table.req td { font-family:monospace; }
    table td.code { width:100%; }
    table td.code pre { overflow:hidden; }
    table.source th { color:#666; }
    table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
    ul.traceback { list-style-type:none; color: #222; }
    ul.traceback li.frame { padding-bottom:1em; color:#666; }
    ul.traceback li.user { background-color:#e0e0e0; color:#000 }
    div.context { padding:10px 0; overflow:hidden; }
    div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
    div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; padding-left: 2px; }
    div.context ol li pre { display:inline; }
    div.context ol.context-line li { color:#505050; background-color:#dfdfdf; padding: 3px 2px; }
    div.context ol.context-line li span { position:absolute; right:32px; }
    .user div.context ol.context-line li { background-color:#bbb; color:#000; }
    .user div.context ol li { color:#666; }
    div.commands { margin-left: 40px; }
    div.commands a { color:#555; text-decoration:none; }
    .user div.commands a { color: black; }
    #summary { background: #ffc; }
    #summary h2 { font-weight: normal; color: #666; }
    #explanation { background:#eee; }
    #template, #template-not-exist { background:#f6f6f6; }
    #template-not-exist ul { margin: 0 0 10px 20px; }
    #template-not-exist .postmortem-section { margin-bottom: 3px; }
    #unicode-hint { background:#eee; }
    #traceback { background:#eee; }
    #requestinfo { background:#f6f6f6; padding-left:120px; }
    #summary table { border:none; background:transparent; }
    #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
    #requestinfo h3 { margin-bottom:-1em; }
    .error { background: #ffc; }
    .specific { color:#cc3300; font-weight:bold; }
    h2 span.commands { font-size:.7em;}
    span.commands a:link {color:#5E5694;}
    pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; }
    .append-bottom { margin-bottom: 10px; }
  </style>
  
  <script type="text/javascript">
  //<!--
    function getElementsByClassName(oElm, strTagName, strClassName){
        // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
        var arrElements = (strTagName == "*" && document.all)? document.all :
        oElm.getElementsByTagName(strTagName);
        var arrReturnElements = new Array();
        strClassName = strClassName.replace(/\-/g, "\-");
        var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
        var oElement;
        for(var i=0; i<arrElements.length; i++){
            oElement = arrElements[i];
            if(oRegExp.test(oElement.className)){
                arrReturnElements.push(oElement);
            }
        }
        return (arrReturnElements)
    }
    function hideAll(elems) {
      for (var e = 0; e < elems.length; e++) {
        elems[e].style.display = 'none';
      }
    }
    window.onload = function() {
      hideAll(getElementsByClassName(document, 'table', 'vars'));
      hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
      hideAll(getElementsByClassName(document, 'ol', 'post-context'));
      hideAll(getElementsByClassName(document, 'div', 'pastebin'));
    }
    function toggle() {
      for (var i = 0; i < arguments.length; i++) {
        var e = document.getElementById(arguments[i]);
        if (e) {
          e.style.display = e.style.display == 'none' ? 'block': 'none';
        }
      }
      return false;
    }
    function varToggle(link, id) {
      toggle('v' + id);
      var s = link.getElementsByTagName('span')[0];
      var uarr = String.fromCharCode(0x25b6);
      var darr = String.fromCharCode(0x25bc);
      s.innerHTML = s.innerHTML == uarr ? darr : uarr;
      return false;
    }
    function switchPastebinFriendly(link) {
      s1 = "Switch to copy-and-paste view";
      s2 = "Switch back to interactive view";
      link.innerHTML = link.innerHTML.trim() == s1 ? s2: s1;
      toggle('browserTraceback', 'pastebinTraceback');
      return false;
    }
    //-->
  </script>
  
</head>
<body>
<div id="summary">
  <h1>AttributeError at /problem/judge/api/receive_judge_result/86</h1>
  <pre class="exception_value">&#39;QuerySet&#39; object has no attribute &#39;problem&#39;</pre>
  <table class="meta">

    <tr>
      <th>Request Method:</th>
      <td>POST</td>
    </tr>
    <tr>
      <th>Request URL:</th>
      <td>http://127.0.0.1:6666/problem/judge/api/receive_judge_result/86?timestamp=1478336016&amp;randstr=adf96e&amp;signature=3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c</td>
    </tr>

    <tr>
      <th>Django Version:</th>
      <td>1.9</td>
    </tr>

    <tr>
      <th>Exception Type:</th>
      <td>AttributeError</td>
    </tr>


    <tr>
      <th>Exception Value:</th>
      <td><pre>&#39;QuerySet&#39; object has no attribute &#39;problem&#39;</pre></td>
    </tr>


    <tr>
      <th>Exception Location:</th>
      <td>/mnt/hgfs/wejudge/web/wejudge/kernel/problem/JudgeServiceAPI.py in status_callback_proc, line 235</td>
    </tr>

    <tr>
      <th>Python Executable:</th>
      <td>/usr/bin/python</td>
    </tr>
    <tr>
      <th>Python Version:</th>
      <td>2.7.6</td>
    </tr>
    <tr>
      <th>Python Path:</th>
      <td><pre>[&#39;/mnt/hgfs/wejudge/web&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/DBUtils-1.1-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/django_celery-3.1.17-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/celery-3.1.19-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/kombu-3.0.33-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/billiard-3.3.0.22-py2.7-linux-x86_64.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/pytz-2015.7-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/amqp-1.4.9-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/anyjson-0.3.3-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/supervisor-3.2.0-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/meld3-1.0.2-py2.7.egg&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg&#39;,
 &#39;/usr/lib/python2.7/dist-packages&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages/image-1.4.4-py2.7.egg&#39;,
 &#39;/usr/lib/python2.7&#39;,
 &#39;/usr/lib/python2.7/plat-x86_64-linux-gnu&#39;,
 &#39;/usr/lib/python2.7/lib-tk&#39;,
 &#39;/usr/lib/python2.7/lib-old&#39;,
 &#39;/usr/lib/python2.7/lib-dynload&#39;,
 &#39;/usr/local/lib/python2.7/dist-packages&#39;,
 &#39;/usr/lib/python2.7/dist-packages/PILcompat&#39;,
 &#39;/usr/lib/python2.7/dist-packages/gtk-2.0&#39;,
 &#39;/usr/lib/python2.7/dist-packages/ubuntu-sso-client&#39;]</pre></td>
    </tr>
    <tr>
      <th>Server time:</th>
      <td>星期六, 5 十一月 2016 16:53:37 +0800</td>
    </tr>
  </table>
</div>




<div id="traceback">
  <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">
    Switch to copy-and-paste view</a></span>
  </h2>
  
  <div id="browserTraceback">
    <ul class="traceback">
      
        
        <li class="frame django">
          <code>/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg/django/core/handlers/base.py</code> in <code>get_response</code>

          
            <div class="context" id="c140549061466664">
              
                <ol start="142" class="pre-context" id="pre140549061466664">
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                        break</pre></li>
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre></pre></li>
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>            if response is None:</pre></li>
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                wrapped_callback = self.make_view_atomic(callback)</pre></li>
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                try:</pre></li>
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                    response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre></li>
                
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                except Exception as e:</pre></li>
                
                </ol>
              
              <ol start="149" class="context-line">
                <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>
                    response = self.process_exception_by_middleware(e, request)</pre> <span>...</span></li></ol>
              
                <ol start='150' class="post-context" id="post140549061466664">
                  
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre></pre></li>
                  
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>            # Complain if the view returned None (a common error).</pre></li>
                  
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>            if response is None:</pre></li>
                  
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                if isinstance(callback, types.FunctionType):    # FBV</pre></li>
                  
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                    view_name = callback.__name__</pre></li>
                  
                  <li onclick="toggle('pre140549061466664', 'post140549061466664')"><pre>                else:                                           # CBV</pre></li>
                  
              </ol>
              
            </div>
          

          
            <div class="commands">
                
                    <a href="#" onclick="return varToggle(this, '140549061466664')"><span>&#x25b6;</span> Local vars</a>
                
            </div>
            <table class="vars" id="v140549061466664">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>e</td>
                    <td class="code"><pre>AttributeError(&quot;&#39;QuerySet&#39; object has no attribute &#39;problem&#39;&quot;,)</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback_args</td>
                    <td class="code"><pre>()</pre></td>
                  </tr>
                
                  <tr>
                    <td>resolver_match</td>
                    <td class="code"><pre>ResolverMatch(func=wejudge.apps.problem.views.api_receive_judge_result, args=(), kwargs={&#39;sid&#39;: u&#39;86&#39;}, url_name=None, app_names=[], namespaces=[])</pre></td>
                  </tr>
                
                  <tr>
                    <td>response_is_rendered</td>
                    <td class="code"><pre>False</pre></td>
                  </tr>
                
                  <tr>
                    <td>middleware_method</td>
                    <td class="code"><pre>&lt;bound method MessageMiddleware.process_request of &lt;django.contrib.messages.middleware.MessageMiddleware object at 0x7fd421230ed0&gt;&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>self</td>
                    <td class="code"><pre>&lt;django.core.handlers.wsgi.WSGIHandler object at 0x7fd421305210&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>request</td>
                    <td class="code"><pre>&lt;WSGIRequest: POST &#39;/problem/judge/api/receive_judge_result/86?timestamp=1478336016&amp;randstr=adf96e&amp;signature=3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c&#39;&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback</td>
                    <td class="code"><pre>&lt;function api_receive_judge_result at 0x7fd421751e60&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>wrapped_callback</td>
                    <td class="code"><pre>&lt;function api_receive_judge_result at 0x7fd421751e60&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>resolver</td>
                    <td class="code"><pre>&lt;RegexURLResolver &#39;wejudge.urls&#39; (None:None) ^/&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback_kwargs</td>
                    <td class="code"><pre>{&#39;sid&#39;: u&#39;86&#39;}</pre></td>
                  </tr>
                
                  <tr>
                    <td>response</td>
                    <td class="code"><pre>None</pre></td>
                  </tr>
                
                  <tr>
                    <td>urlconf</td>
                    <td class="code"><pre>&#39;wejudge.urls&#39;</pre></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
        
        <li class="frame django">
          <code>/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg/django/core/handlers/base.py</code> in <code>get_response</code>

          
            <div class="context" id="c140549061467240">
              
                <ol start="140" class="pre-context" id="pre140549061467240">
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                    response = middleware_method(request, callback, callback_args, callback_kwargs)</pre></li>
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                    if response:</pre></li>
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                        break</pre></li>
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre></pre></li>
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>            if response is None:</pre></li>
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                wrapped_callback = self.make_view_atomic(callback)</pre></li>
                
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                try:</pre></li>
                
                </ol>
              
              <ol start="147" class="context-line">
                <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>
                    response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre> <span>...</span></li></ol>
              
                <ol start='148' class="post-context" id="post140549061467240">
                  
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                except Exception as e:</pre></li>
                  
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                    response = self.process_exception_by_middleware(e, request)</pre></li>
                  
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre></pre></li>
                  
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>            # Complain if the view returned None (a common error).</pre></li>
                  
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>            if response is None:</pre></li>
                  
                  <li onclick="toggle('pre140549061467240', 'post140549061467240')"><pre>                if isinstance(callback, types.FunctionType):    # FBV</pre></li>
                  
              </ol>
              
            </div>
          

          
            <div class="commands">
                
                    <a href="#" onclick="return varToggle(this, '140549061467240')"><span>&#x25b6;</span> Local vars</a>
                
            </div>
            <table class="vars" id="v140549061467240">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>e</td>
                    <td class="code"><pre>AttributeError(&quot;&#39;QuerySet&#39; object has no attribute &#39;problem&#39;&quot;,)</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback_args</td>
                    <td class="code"><pre>()</pre></td>
                  </tr>
                
                  <tr>
                    <td>resolver_match</td>
                    <td class="code"><pre>ResolverMatch(func=wejudge.apps.problem.views.api_receive_judge_result, args=(), kwargs={&#39;sid&#39;: u&#39;86&#39;}, url_name=None, app_names=[], namespaces=[])</pre></td>
                  </tr>
                
                  <tr>
                    <td>response_is_rendered</td>
                    <td class="code"><pre>False</pre></td>
                  </tr>
                
                  <tr>
                    <td>middleware_method</td>
                    <td class="code"><pre>&lt;bound method MessageMiddleware.process_request of &lt;django.contrib.messages.middleware.MessageMiddleware object at 0x7fd421230ed0&gt;&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>self</td>
                    <td class="code"><pre>&lt;django.core.handlers.wsgi.WSGIHandler object at 0x7fd421305210&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>request</td>
                    <td class="code"><pre>&lt;WSGIRequest: POST &#39;/problem/judge/api/receive_judge_result/86?timestamp=1478336016&amp;randstr=adf96e&amp;signature=3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c&#39;&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback</td>
                    <td class="code"><pre>&lt;function api_receive_judge_result at 0x7fd421751e60&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>wrapped_callback</td>
                    <td class="code"><pre>&lt;function api_receive_judge_result at 0x7fd421751e60&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>resolver</td>
                    <td class="code"><pre>&lt;RegexURLResolver &#39;wejudge.urls&#39; (None:None) ^/&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback_kwargs</td>
                    <td class="code"><pre>{&#39;sid&#39;: u&#39;86&#39;}</pre></td>
                  </tr>
                
                  <tr>
                    <td>response</td>
                    <td class="code"><pre>None</pre></td>
                  </tr>
                
                  <tr>
                    <td>urlconf</td>
                    <td class="code"><pre>&#39;wejudge.urls&#39;</pre></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
        
        <li class="frame user">
          <code>/mnt/hgfs/wejudge/web/wejudge/apps/problem/views.py</code> in <code>api_receive_judge_result</code>

          
            <div class="context" id="c140549061467672">
              
                <ol start="272" class="pre-context" id="pre140549061467672">
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>    viewr.get_problem_judge_options(sid)</pre></li>
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>    return viewr.render()</pre></li>
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre></pre></li>
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre></pre></li>
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre># 评测机接口：接受评测结果</pre></li>
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>def api_receive_judge_result(request, sid):</pre></li>
                
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>    viewr = ProblemKernel.JudgeServiceAPI(request)</pre></li>
                
                </ol>
              
              <ol start="279" class="context-line">
                <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>
    viewr.receive_judge_result(sid)</pre> <span>...</span></li></ol>
              
                <ol start='280' class="post-context" id="post140549061467672">
                  
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>    return viewr.render()</pre></li>
                  
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre></pre></li>
                  
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre></pre></li>
                  
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre># 评测机接口【TDMaker】：获取问题评测信息</pre></li>
                  
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>def tdmaker_get_problem_judge_options(request, id):</pre></li>
                  
                  <li onclick="toggle('pre140549061467672', 'post140549061467672')"><pre>    viewr = ProblemKernel.JudgeServiceAPI(request)</pre></li>
                  
              </ol>
              
            </div>
          

          
            <div class="commands">
                
                    <a href="#" onclick="return varToggle(this, '140549061467672')"><span>&#x25b6;</span> Local vars</a>
                
            </div>
            <table class="vars" id="v140549061467672">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>request</td>
                    <td class="code"><pre>&lt;WSGIRequest: POST &#39;/problem/judge/api/receive_judge_result/86?timestamp=1478336016&amp;randstr=adf96e&amp;signature=3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c&#39;&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>viewr</td>
                    <td class="code"><pre>&lt;wejudge.kernel.problem.JudgeServiceAPI.JudgeServiceAPI object at 0x7fd420efbc10&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>sid</td>
                    <td class="code"><pre>u&#39;86&#39;</pre></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
        
        <li class="frame user">
          <code>/mnt/hgfs/wejudge/web/wejudge/kernel/problem/JudgeServiceAPI.py</code> in <code>receive_judge_result</code>

          
            <div class="context" id="c140549061466232">
              
                <ol start="34" class="pre-context" id="pre140549061466232">
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>        if status.exists():</pre></li>
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            status = status[0]</pre></li>
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            status.result = result</pre></li>
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            status.flag = root.get(&#39;exitcode&#39;, 8)</pre></li>
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            status.exe_mem = root.get(&#39;memused&#39;, 0)</pre></li>
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            status.exe_time = root.get(&#39;timeused&#39;, 0)</pre></li>
                
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            status.save()</pre></li>
                
                </ol>
              
              <ol start="41" class="context-line">
                <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>
            self.status_callback_proc(status)</pre> <span>...</span></li></ol>
              
                <ol start='42' class="post-context" id="post140549061466232">
                  
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            self._exchange_progrem_run_outdata(status, root.get(&#39;session_id&#39;), root.get(&quot;outdatas&quot;))</pre></li>
                  
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            self._arrange_judge_result(status)</pre></li>
                  
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            self._result = kernel.RESTStruct(True, data=True)</pre></li>
                  
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre></pre></li>
                  
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>        else:</pre></li>
                  
                  <li onclick="toggle('pre140549061466232', 'post140549061466232')"><pre>            self._result = kernel.RESTStruct(False, msg=&quot;Error: No status found.&quot;)</pre></li>
                  
              </ol>
              
            </div>
          

          
            <div class="commands">
                
                    <a href="#" onclick="return varToggle(this, '140549061466232')"><span>&#x25b6;</span> Local vars</a>
                
            </div>
            <table class="vars" id="v140549061466232">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>status</td>
                    <td class="code"><pre>&lt;JudgeStatus: id = 86&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>self</td>
                    <td class="code"><pre>&lt;wejudge.kernel.problem.JudgeServiceAPI.JudgeServiceAPI object at 0x7fd420efbc10&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>root</td>
                    <td class="code"><pre>{u&#39;exitcode&#39;: 1,
 u&#39;memused&#39;: 12648,
 u&#39;outdatas&#39;: {u&#39;6dc0af54b623c966&#39;: u&#39;6dc0af54b623c966.outdata&#39;},
 u&#39;result&#39;: {u&#39;6dc0af54b623c966&#39;: {u&#39;memoryused&#39;: 12648,
                                   u&#39;result&#39;: 1,
                                   u&#39;timeused&#39;: 0}},
 u&#39;session_id&#39;: u&#39;cd81bfd983361dbd&#39;,
 u&#39;timeused&#39;: 0}</pre></td>
                  </tr>
                
                  <tr>
                    <td>result</td>
                    <td class="code"><pre>u&#39;{&quot;outdatas&quot;: {&quot;6dc0af54b623c966&quot;: &quot;6dc0af54b623c966.outdata&quot;}, &quot;timeused&quot;: 0, &quot;session_id&quot;: &quot;cd81bfd983361dbd&quot;, &quot;result&quot;: {&quot;6dc0af54b623c966&quot;: {&quot;timeused&quot;: 0, &quot;memoryused&quot;: 12648, &quot;result&quot;: 1}}, &quot;memused&quot;: 12648, &quot;exitcode&quot;: 1}&#39;</pre></td>
                  </tr>
                
                  <tr>
                    <td>sid</td>
                    <td class="code"><pre>u&#39;86&#39;</pre></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
        
        <li class="frame user">
          <code>/mnt/hgfs/wejudge/web/wejudge/kernel/problem/JudgeServiceAPI.py</code> in <code>status_callback_proc</code>

          
            <div class="context" id="c140549061467960">
              
                <ol start="228" class="pre-context" id="pre140549061467960">
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                td_score_precent = {}</pre></li>
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre></pre></li>
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                asgn = asgn[0]</pre></li>
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                # 获取题目设置信息</pre></li>
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                asgn_problem = asgn.problemset.filter(problem=status.problem)</pre></li>
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                if not asgn_problem.exists():</pre></li>
                
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                    return</pre></li>
                
                </ol>
              
              <ol start="235" class="context-line">
                <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>
                test_datas = ProblemMdl.TestData.objects.filter(problem=asgn_problem.problem)</pre> <span>...</span></li></ol>
              
                <ol start='236' class="post-context" id="post140549061467960">
                  
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                for td in test_datas:</pre></li>
                  
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                    td_score_precent[td.handle] = td.score_precent</pre></li>
                  
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                asgn_problem = asgn_problem[0]</pre></li>
                  
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                ignore_pe = asgn_problem.ignore_pe</pre></li>
                  
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                pe_score = asgn_problem.pe_score</pre></li>
                  
                  <li onclick="toggle('pre140549061467960', 'post140549061467960')"><pre>                asgn_problem.accepted = asgn.judge_status.filter(flag=0, problem__id=status.problem.id).count()</pre></li>
                  
              </ol>
              
            </div>
          

          
            <div class="commands">
                
                    <a href="#" onclick="return varToggle(this, '140549061467960')"><span>&#x25b6;</span> Local vars</a>
                
            </div>
            <table class="vars" id="v140549061467960">
              <thead>
                <tr>
                  <th>Variable</th>
                  <th>Value</th>
                </tr>
              </thead>
              <tbody>
                
                  <tr>
                    <td>status</td>
                    <td class="code"><pre>&lt;JudgeStatus: id = 86&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>self</td>
                    <td class="code"><pre>&lt;wejudge.kernel.problem.JudgeServiceAPI.JudgeServiceAPI object at 0x7fd420efbc10&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>asgn</td>
                    <td class="code"><pre>&lt;Asgn: ID=5, name=测试作业&gt;</pre></td>
                  </tr>
                
                  <tr>
                    <td>callback</td>
                    <td class="code"><pre>{u&#39;id&#39;: 5, u&#39;provider&#39;: u&#39;asgn&#39;}</pre></td>
                  </tr>
                
                  <tr>
                    <td>asgn_id</td>
                    <td class="code"><pre>5</pre></td>
                  </tr>
                
                  <tr>
                    <td>td_score_precent</td>
                    <td class="code"><pre>{}</pre></td>
                  </tr>
                
                  <tr>
                    <td>asgn_problem</td>
                    <td class="code"><pre>[&lt;AsgnProblems: id = 13,  PID=1000. 两整数相加&gt;]</pre></td>
                  </tr>
                
              </tbody>
            </table>
          
        </li>
      
    </ul>
  </div>
  
  <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">

  <div id="pastebinTraceback" class="pastebin">
    <input type="hidden" name="language" value="PythonConsole">
    <input type="hidden" name="title"
      value="AttributeError at /problem/judge/api/receive_judge_result/86">
    <input type="hidden" name="source" value="Django Dpaste Agent">
    <input type="hidden" name="poster" value="Django">
    <textarea name="content" id="traceback_area" cols="140" rows="25">
Environment:


Request Method: POST
Request URL: http://127.0.0.1:6666/problem/judge/api/receive_judge_result/86?timestamp=1478336016&amp;randstr=adf96e&amp;signature=3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c

Django Version: 1.9
Python Version: 2.7.6
Installed Applications:
[&#39;django.contrib.admin&#39;,
 &#39;django.contrib.auth&#39;,
 &#39;django.contrib.contenttypes&#39;,
 &#39;django.contrib.sessions&#39;,
 &#39;django.contrib.messages&#39;,
 &#39;django.contrib.staticfiles&#39;,
 &#39;wejudge.apps.account&#39;,
 &#39;wejudge.apps.asgn&#39;,
 &#39;wejudge.apps.education&#39;,
 &#39;wejudge.apps.problem&#39;,
 &#39;wejudge.apps.bnuzoj&#39;,
 &#39;wejudge.apps.cpanel&#39;,
 &#39;wejudge.apps.contest&#39;,
 &#39;wejudge.apps.datacenter&#39;,
 &#39;wejudge.apps.oauth2&#39;,
 &#39;wejudge.apps.helper&#39;,
 &#39;wejudge.apps.moss&#39;]
Installed Middleware:
[&#39;django.middleware.security.SecurityMiddleware&#39;,
 &#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
 &#39;django.middleware.common.CommonMiddleware&#39;,
 &#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;,
 &#39;django.contrib.auth.middleware.SessionAuthenticationMiddleware&#39;,
 &#39;django.contrib.messages.middleware.MessageMiddleware&#39;,
 &#39;django.middleware.clickjacking.XFrameOptionsMiddleware&#39;]



Traceback:

File "/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg/django/core/handlers/base.py" in get_response
  149.                     response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/Django-1.9-py2.7.egg/django/core/handlers/base.py" in get_response
  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/mnt/hgfs/wejudge/web/wejudge/apps/problem/views.py" in api_receive_judge_result
  279.     viewr.receive_judge_result(sid)

File "/mnt/hgfs/wejudge/web/wejudge/kernel/problem/JudgeServiceAPI.py" in receive_judge_result
  41.             self.status_callback_proc(status)

File "/mnt/hgfs/wejudge/web/wejudge/kernel/problem/JudgeServiceAPI.py" in status_callback_proc
  235.                 test_datas = ProblemMdl.TestData.objects.filter(problem=asgn_problem.problem)

Exception Type: AttributeError at /problem/judge/api/receive_judge_result/86
Exception Value: &#39;QuerySet&#39; object has no attribute &#39;problem&#39;
</textarea>
  <br><br>
  <input type="submit" value="Share this traceback on a public Web site">
  </div>
</form>
</div>



<div id="requestinfo">
  <h2>Request information</h2>


  <h3 id="get-info">GET</h3>
  
    <table class="req">
      <thead>
        <tr>
          <th>Variable</th>
          <th>Value</th>
        </tr>
      </thead>
      <tbody>
        
          <tr>
            <td>timestamp</td>
            <td class="code"><pre>u&#39;1478336016&#39;</pre></td>
          </tr>
        
          <tr>
            <td>randstr</td>
            <td class="code"><pre>u&#39;adf96e&#39;</pre></td>
          </tr>
        
          <tr>
            <td>signature</td>
            <td class="code"><pre>u&#39;3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c&#39;</pre></td>
          </tr>
        
      </tbody>
    </table>
  

  <h3 id="post-info">POST</h3>
  
    <table class="req">
      <thead>
        <tr>
          <th>Variable</th>
          <th>Value</th>
        </tr>
      </thead>
      <tbody>
        
          <tr>
            <td>result</td>
            <td class="code"><pre>u&#39;{&quot;outdatas&quot;: {&quot;6dc0af54b623c966&quot;: &quot;6dc0af54b623c966.outdata&quot;}, &quot;timeused&quot;: 0, &quot;session_id&quot;: &quot;cd81bfd983361dbd&quot;, &quot;result&quot;: {&quot;6dc0af54b623c966&quot;: {&quot;timeused&quot;: 0, &quot;memoryused&quot;: 12648, &quot;result&quot;: 1}}, &quot;memused&quot;: 12648, &quot;exitcode&quot;: 1}&#39;</pre></td>
          </tr>
        
      </tbody>
    </table>
  
  <h3 id="files-info">FILES</h3>
  
    <p>No FILES data</p>
  


  <h3 id="cookie-info">COOKIES</h3>
  
    <p>No cookie data</p>
  

  <h3 id="meta-info">META</h3>
  <table class="req">
    <thead>
      <tr>
        <th>Variable</th>
        <th>Value</th>
      </tr>
    </thead>
    <tbody>
      
        <tr>
          <td>RUN_MAIN</td>
          <td class="code"><pre>&#39;true&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_GREETER_DATA_DIR</td>
          <td class="code"><pre>&#39;/var/lib/lightdm-data/lancelrq&#39;</pre></td>
        </tr>
      
        <tr>
          <td>QT4_IM_MODULE</td>
          <td class="code"><pre>&#39;xim&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SERVER_SOFTWARE</td>
          <td class="code"><pre>&#39;WSGIServer/0.1 Python/2.7.6&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SCRIPT_NAME</td>
          <td class="code"><pre>u&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>REQUEST_METHOD</td>
          <td class="code"><pre>&#39;POST&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SERVER_PROTOCOL</td>
          <td class="code"><pre>&#39;HTTP/1.1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>HOME</td>
          <td class="code"><pre>&#39;/home/lancelrq&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DISPLAY</td>
          <td class="code"><pre>&#39;:0&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LANG</td>
          <td class="code"><pre>&#39;zh_CN.UTF-8&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SHELL</td>
          <td class="code"><pre>&#39;/bin/bash&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_DATA_DIRS</td>
          <td class="code"><pre>&#39;/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>MANDATORY_PATH</td>
          <td class="code"><pre>&#39;/usr/share/gconf/ubuntu.mandatory.path&#39;</pre></td>
        </tr>
      
        <tr>
          <td>COMPIZ_CONFIG_PROFILE</td>
          <td class="code"><pre>&#39;ubuntu&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TEXTDOMAIN</td>
          <td class="code"><pre>&#39;im-config&#39;</pre></td>
        </tr>
      
        <tr>
          <td>JOB</td>
          <td class="code"><pre>&#39;dbus&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION</td>
          <td class="code"><pre>&#39;ubuntu&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SERVER_PORT</td>
          <td class="code"><pre>&#39;6666&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XMODIFIERS</td>
          <td class="code"><pre>&#39;@im=ibus&#39;</pre></td>
        </tr>
      
        <tr>
          <td>JAVA_HOME</td>
          <td class="code"><pre>&#39;/usr/java/jdk1.8&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SELINUX_INIT</td>
          <td class="code"><pre>&#39;YES&#39;</pre></td>
        </tr>
      
        <tr>
          <td>PATH_INFO</td>
          <td class="code"><pre>u&#39;/problem/judge/api/receive_judge_result/86&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_RUNTIME_DIR</td>
          <td class="code"><pre>&#39;/run/user/1000&#39;</pre></td>
        </tr>
      
        <tr>
          <td>COMPIZ_BIN_PATH</td>
          <td class="code"><pre>&#39;/usr/bin/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>VTE_VERSION</td>
          <td class="code"><pre>&#39;3409&#39;</pre></td>
        </tr>
      
        <tr>
          <td>HTTP_CONNECTION</td>
          <td class="code"><pre>&#39;close&#39;</pre></td>
        </tr>
      
        <tr>
          <td>HTTP_HOST</td>
          <td class="code"><pre>&#39;127.0.0.1:6666&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.version</td>
          <td class="code"><pre>(1, 0)</pre></td>
        </tr>
      
        <tr>
          <td>XDG_CURRENT_DESKTOP</td>
          <td class="code"><pre>&#39;Unity&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_SESSION_ID</td>
          <td class="code"><pre>&#39;c1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DBUS_SESSION_BUS_ADDRESS</td>
          <td class="code"><pre>&#39;unix:abstract=/tmp/dbus-fCa3GcA95l&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULTS_PATH</td>
          <td class="code"><pre>&#39;/usr/share/gconf/ubuntu.default.path&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DESKTOP_SESSION</td>
          <td class="code"><pre>&#39;ubuntu&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LESSCLOSE</td>
          <td class="code"><pre>&#39;/usr/bin/lesspipe %s %s&#39;</pre></td>
        </tr>
      
        <tr>
          <td>GTK_MODULES</td>
          <td class="code"><pre>&#39;overlay-scrollbar:unity-gtk-module&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.run_once</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.errors</td>
          <td class="code"><pre>&lt;open file &#39;&lt;stderr&gt;&#39;, mode &#39;w&#39; at 0x7fd428a461e0&gt;</pre></td>
        </tr>
      
        <tr>
          <td>GATEWAY_INTERFACE</td>
          <td class="code"><pre>&#39;CGI/1.1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>INSTANCE</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SSH_AGENT_LAUNCHER</td>
          <td class="code"><pre>&#39;upstart&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_MENU_PREFIX</td>
          <td class="code"><pre>&#39;gnome-&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LS_COLORS</td>
          <td class="code"><pre>&#39;rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_SEAT</td>
          <td class="code"><pre>&#39;seat0&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.multiprocess</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>GNOME_DESKTOP_SESSION_ID</td>
          <td class="code"><pre>&#39;this-is-deprecated&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LESSOPEN</td>
          <td class="code"><pre>&#39;| /usr/bin/lesspipe %s&#39;</pre></td>
        </tr>
      
        <tr>
          <td>QUERY_STRING</td>
          <td class="code"><pre>&#39;timestamp=1478336016&amp;randstr=adf96e&amp;signature=3e0d39e8a2b6cbd13297eb5a0eb8d09aa45dbd64ab4d95347a2810d07741461c&#39;</pre></td>
        </tr>
      
        <tr>
          <td>QT_IM_MODULE</td>
          <td class="code"><pre>&#39;ibus&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LOGNAME</td>
          <td class="code"><pre>&#39;lancelrq&#39;</pre></td>
        </tr>
      
        <tr>
          <td>USER</td>
          <td class="code"><pre>&#39;lancelrq&#39;</pre></td>
        </tr>
      
        <tr>
          <td>GNOME_KEYRING_CONTROL</td>
          <td class="code"><pre>&#39;/run/user/1000/keyring-5Abwag&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_VTNR</td>
          <td class="code"><pre>&#39;7&#39;</pre></td>
        </tr>
      
        <tr>
          <td>PATH</td>
          <td class="code"><pre>&#39;/usr/java/jdk1.8/bin:/usr/java/jdk1.8/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SSH_AGENT_PID</td>
          <td class="code"><pre>&#39;1778&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TERM</td>
          <td class="code"><pre>&#39;xterm&#39;</pre></td>
        </tr>
      
        <tr>
          <td>HTTP_USER_AGENT</td>
          <td class="code"><pre>&#39;Python-urllib/2.7&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_SESSION_PATH</td>
          <td class="code"><pre>&#39;/org/freedesktop/DisplayManager/Session0&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XAUTHORITY</td>
          <td class="code"><pre>&#39;/home/lancelrq/.Xauthority&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGE</td>
          <td class="code"><pre>&#39;zh_CN:zh&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_MANAGER</td>
          <td class="code"><pre>&#39;local/lance-ubuntu:@/tmp/.ICE-unix/1894,unix/lance-ubuntu:/tmp/.ICE-unix/1894&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SHLVL</td>
          <td class="code"><pre>&#39;1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>QT_QPA_PLATFORMTHEME</td>
          <td class="code"><pre>&#39;appmenu-qt5&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.url_scheme</td>
          <td class="code"><pre>&#39;http&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CLUTTER_IM_MODULE</td>
          <td class="code"><pre>&#39;xim&#39;</pre></td>
        </tr>
      
        <tr>
          <td>WINDOWID</td>
          <td class="code"><pre>&#39;56623115&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSIONTYPE</td>
          <td class="code"><pre>&#39;gnome-session&#39;</pre></td>
        </tr>
      
        <tr>
          <td>IM_CONFIG_PHASE</td>
          <td class="code"><pre>&#39;1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>GPG_AGENT_INFO</td>
          <td class="code"><pre>&#39;/run/user/1000/keyring-5Abwag/gpg:0:1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CONTENT_LENGTH</td>
          <td class="code"><pre>&#39;338&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CONTENT_TYPE</td>
          <td class="code"><pre>&#39;application/x-www-form-urlencoded&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SSH_AUTH_SOCK</td>
          <td class="code"><pre>&#39;/run/user/1000/keyring-5Abwag/ssh&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CLASSPATH</td>
          <td class="code"><pre>&#39;.:/usr/java/jdk1/lib:/usr/java/jdk1.8/jre/lib:&#39;</pre></td>
        </tr>
      
        <tr>
          <td>GDMSESSION</td>
          <td class="code"><pre>&#39;ubuntu&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.input</td>
          <td class="code"><pre>&lt;socket._fileobject object at 0x7fd420f48150&gt;</pre></td>
        </tr>
      
        <tr>
          <td>TEXTDOMAINDIR</td>
          <td class="code"><pre>&#39;/usr/share/locale/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.multithread</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>XDG_SEAT_PATH</td>
          <td class="code"><pre>&#39;/org/freedesktop/DisplayManager/Seat0&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TZ</td>
          <td class="code"><pre>&#39;Etc/GMT-8&#39;</pre></td>
        </tr>
      
        <tr>
          <td>_</td>
          <td class="code"><pre>&#39;/usr/bin/python&#39;</pre></td>
        </tr>
      
        <tr>
          <td>GTK_IM_MODULE</td>
          <td class="code"><pre>&#39;ibus&#39;</pre></td>
        </tr>
      
        <tr>
          <td>UPSTART_SESSION</td>
          <td class="code"><pre>&#39;unix:abstract=/com/ubuntu/upstart-session/1000/1627&#39;</pre></td>
        </tr>
      
        <tr>
          <td>XDG_CONFIG_DIRS</td>
          <td class="code"><pre>&#39;/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SERVER_NAME</td>
          <td class="code"><pre>&#39;localhost&#39;</pre></td>
        </tr>
      
        <tr>
          <td>UBUNTU_MENUPROXY</td>
          <td class="code"><pre>&#39;1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>OLDPWD</td>
          <td class="code"><pre>&#39;/data/wejudge&#39;</pre></td>
        </tr>
      
        <tr>
          <td>REMOTE_ADDR</td>
          <td class="code"><pre>&#39;127.0.0.1&#39;</pre></td>
        </tr>
      
        <tr>
          <td>GDM_LANG</td>
          <td class="code"><pre>&#39;zh_CN&#39;</pre></td>
        </tr>
      
        <tr>
          <td>PWD</td>
          <td class="code"><pre>&#39;/data/wejudge/web&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DJANGO_SETTINGS_MODULE</td>
          <td class="code"><pre>&#39;wejudge.settings&#39;</pre></td>
        </tr>
      
        <tr>
          <td>COLORTERM</td>
          <td class="code"><pre>&#39;gnome-terminal&#39;</pre></td>
        </tr>
      
        <tr>
          <td>wsgi.file_wrapper</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>REMOTE_HOST</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>HTTP_ACCEPT_ENCODING</td>
          <td class="code"><pre>&#39;identity&#39;</pre></td>
        </tr>
      
    </tbody>
  </table>


  <h3 id="settings-info">Settings</h3>
  <h4>Using settings module <code>wejudge.settings</code></h4>
  <table class="req">
    <thead>
      <tr>
        <th>Setting</th>
        <th>Value</th>
      </tr>
    </thead>
    <tbody>
      
        <tr>
          <td>SECURE_BROWSER_XSS_FILTER</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>USE_X_FORWARDED_PORT</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>USE_THOUSAND_SEPARATOR</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_SECURE</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_CODE</td>
          <td class="code"><pre>&#39;zh-Hans&#39;</pre></td>
        </tr>
      
        <tr>
          <td>ROOT_URLCONF</td>
          <td class="code"><pre>&#39;wejudge.urls&#39;</pre></td>
        </tr>
      
        <tr>
          <td>MANAGERS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>BASE_DIR</td>
          <td class="code"><pre>&#39;/mnt/hgfs/wejudge/web&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SILENCED_SYSTEM_CHECKS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_CHARSET</td>
          <td class="code"><pre>&#39;utf-8&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_SERIALIZER</td>
          <td class="code"><pre>&#39;django.contrib.sessions.serializers.JSONSerializer&#39;</pre></td>
        </tr>
      
        <tr>
          <td>STATIC_ROOT</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>ALLOWED_HOSTS</td>
          <td class="code"><pre>[&#39;*&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>MESSAGE_STORAGE</td>
          <td class="code"><pre>&#39;django.contrib.messages.storage.fallback.FallbackStorage&#39;</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_SUBJECT_PREFIX</td>
          <td class="code"><pre>&#39;[Django] &#39;</pre></td>
        </tr>
      
        <tr>
          <td>SERVER_EMAIL</td>
          <td class="code"><pre>&#39;root@localhost&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_HSTS_SECONDS</td>
          <td class="code"><pre>0</pre></td>
        </tr>
      
        <tr>
          <td>STATICFILES_FINDERS</td>
          <td class="code"><pre>[&#39;django.contrib.staticfiles.finders.FileSystemFinder&#39;,
 &#39;django.contrib.staticfiles.finders.AppDirectoriesFinder&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_CACHE_ALIAS</td>
          <td class="code"><pre>&#39;default&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_DOMAIN</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_NAME</td>
          <td class="code"><pre>&#39;sessionid&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TIME_INPUT_FORMATS</td>
          <td class="code"><pre>[&#39;%H:%M:%S&#39;, &#39;%H:%M:%S.%f&#39;, &#39;%H:%M&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_REDIRECT_EXEMPT</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>DATABASES</td>
          <td class="code"><pre>{&#39;default&#39;: {&#39;ATOMIC_REQUESTS&#39;: False,
             &#39;AUTOCOMMIT&#39;: True,
             &#39;CONN_MAX_AGE&#39;: 0,
             &#39;ENGINE&#39;: &#39;django_mysqlpool.backends.mysqlpool&#39;,
             &#39;HOST&#39;: &#39;127.0.0.1&#39;,
             &#39;NAME&#39;: &#39;wejudge&#39;,
             &#39;OPTIONS&#39;: {&#39;charset&#39;: &#39;utf8mb4&#39;},
             &#39;PASSWORD&#39;: u&#39;********************&#39;,
             &#39;PORT&#39;: &#39;3306&#39;,
             &#39;TEST&#39;: {&#39;CHARSET&#39;: None,
                      &#39;COLLATION&#39;: None,
                      &#39;MIRROR&#39;: None,
                      &#39;NAME&#39;: None},
             &#39;TIME_ZONE&#39;: None,
             &#39;USER&#39;: &#39;root&#39;}}</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_SSL_KEYFILE</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_PERMISSIONS</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_HANDLERS</td>
          <td class="code"><pre>[&#39;django.core.files.uploadhandler.MemoryFileUploadHandler&#39;,
 &#39;django.core.files.uploadhandler.TemporaryFileUploadHandler&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_CONTENT_TYPE</td>
          <td class="code"><pre>&#39;text/html&#39;</pre></td>
        </tr>
      
        <tr>
          <td>APPEND_SLASH</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>LOCALE_PATHS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>DATABASE_ROUTERS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_TABLESPACE</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>YEAR_MONTH_FORMAT</td>
          <td class="code"><pre>&#39;F Y&#39;</pre></td>
        </tr>
      
        <tr>
          <td>STATICFILES_STORAGE</td>
          <td class="code"><pre>&#39;django.contrib.staticfiles.storage.StaticFilesStorage&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CACHES</td>
          <td class="code"><pre>{&#39;default&#39;: {&#39;BACKEND&#39;: &#39;django.core.cache.backends.locmem.LocMemCache&#39;}}</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_PATH</td>
          <td class="code"><pre>&#39;/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_HOST_PASSWORD</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_CONTENT_TYPE_NOSNIFF</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>MIDDLEWARE_CLASSES</td>
          <td class="code"><pre>[&#39;django.middleware.security.SecurityMiddleware&#39;,
 &#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
 &#39;django.middleware.common.CommonMiddleware&#39;,
 &#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;,
 &#39;django.contrib.auth.middleware.SessionAuthenticationMiddleware&#39;,
 &#39;django.contrib.messages.middleware.MessageMiddleware&#39;,
 &#39;django.middleware.clickjacking.XFrameOptionsMiddleware&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>USE_I18N</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>THOUSAND_SEPARATOR</td>
          <td class="code"><pre>&#39;,&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SECRET_KEY</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_COOKIE_NAME</td>
          <td class="code"><pre>&#39;django_language&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_INDEX_TABLESPACE</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LOGGING_CONFIG</td>
          <td class="code"><pre>&#39;logging.config.dictConfig&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_LOADERS</td>
          <td class="code"><pre>[&#39;django.template.loaders.filesystem.Loader&#39;,
 &#39;django.template.loaders.app_directories.Loader&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>FIRST_DAY_OF_WEEK</td>
          <td class="code"><pre>0</pre></td>
        </tr>
      
        <tr>
          <td>WSGI_APPLICATION</td>
          <td class="code"><pre>&#39;wejudge.wsgi.application&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_DEBUG</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>X_FRAME_OPTIONS</td>
          <td class="code"><pre>&#39;SAMEORIGIN&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_NAME</td>
          <td class="code"><pre>&#39;csrftoken&#39;</pre></td>
        </tr>
      
        <tr>
          <td>FORCE_SCRIPT_NAME</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>USE_X_FORWARDED_HOST</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_HEADER_NAME</td>
          <td class="code"><pre>&#39;HTTP_X_CSRFTOKEN&#39;</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_TIMEOUT</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_SSL_HOST</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>SIGNING_BACKEND</td>
          <td class="code"><pre>&#39;django.core.signing.TimestampSigner&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_SECURE</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_DOMAIN</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>FILE_CHARSET</td>
          <td class="code"><pre>&#39;utf-8&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DEBUG</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_TRUSTED_ORIGINS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_COOKIE_DOMAIN</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_FILE_STORAGE</td>
          <td class="code"><pre>&#39;django.core.files.storage.FileSystemStorage&#39;</pre></td>
        </tr>
      
        <tr>
          <td>INSTALLED_APPS</td>
          <td class="code"><pre>[&#39;django.contrib.admin&#39;,
 &#39;django.contrib.auth&#39;,
 &#39;django.contrib.contenttypes&#39;,
 &#39;django.contrib.sessions&#39;,
 &#39;django.contrib.messages&#39;,
 &#39;django.contrib.staticfiles&#39;,
 &#39;wejudge.apps.account&#39;,
 &#39;wejudge.apps.asgn&#39;,
 &#39;wejudge.apps.education&#39;,
 &#39;wejudge.apps.problem&#39;,
 &#39;wejudge.apps.bnuzoj&#39;,
 &#39;wejudge.apps.cpanel&#39;,
 &#39;wejudge.apps.contest&#39;,
 &#39;wejudge.apps.datacenter&#39;,
 &#39;wejudge.apps.oauth2&#39;,
 &#39;wejudge.apps.helper&#39;,
 &#39;wejudge.apps.moss&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGES</td>
          <td class="code"><pre>[(&#39;af&#39;, &#39;Afrikaans&#39;),
 (&#39;ar&#39;, &#39;Arabic&#39;),
 (&#39;ast&#39;, &#39;Asturian&#39;),
 (&#39;az&#39;, &#39;Azerbaijani&#39;),
 (&#39;bg&#39;, &#39;Bulgarian&#39;),
 (&#39;be&#39;, &#39;Belarusian&#39;),
 (&#39;bn&#39;, &#39;Bengali&#39;),
 (&#39;br&#39;, &#39;Breton&#39;),
 (&#39;bs&#39;, &#39;Bosnian&#39;),
 (&#39;ca&#39;, &#39;Catalan&#39;),
 (&#39;cs&#39;, &#39;Czech&#39;),
 (&#39;cy&#39;, &#39;Welsh&#39;),
 (&#39;da&#39;, &#39;Danish&#39;),
 (&#39;de&#39;, &#39;German&#39;),
 (&#39;el&#39;, &#39;Greek&#39;),
 (&#39;en&#39;, &#39;English&#39;),
 (&#39;en-au&#39;, &#39;Australian English&#39;),
 (&#39;en-gb&#39;, &#39;British English&#39;),
 (&#39;eo&#39;, &#39;Esperanto&#39;),
 (&#39;es&#39;, &#39;Spanish&#39;),
 (&#39;es-ar&#39;, &#39;Argentinian Spanish&#39;),
 (&#39;es-co&#39;, &#39;Colombian Spanish&#39;),
 (&#39;es-mx&#39;, &#39;Mexican Spanish&#39;),
 (&#39;es-ni&#39;, &#39;Nicaraguan Spanish&#39;),
 (&#39;es-ve&#39;, &#39;Venezuelan Spanish&#39;),
 (&#39;et&#39;, &#39;Estonian&#39;),
 (&#39;eu&#39;, &#39;Basque&#39;),
 (&#39;fa&#39;, &#39;Persian&#39;),
 (&#39;fi&#39;, &#39;Finnish&#39;),
 (&#39;fr&#39;, &#39;French&#39;),
 (&#39;fy&#39;, &#39;Frisian&#39;),
 (&#39;ga&#39;, &#39;Irish&#39;),
 (&#39;gd&#39;, &#39;Scottish Gaelic&#39;),
 (&#39;gl&#39;, &#39;Galician&#39;),
 (&#39;he&#39;, &#39;Hebrew&#39;),
 (&#39;hi&#39;, &#39;Hindi&#39;),
 (&#39;hr&#39;, &#39;Croatian&#39;),
 (&#39;hu&#39;, &#39;Hungarian&#39;),
 (&#39;ia&#39;, &#39;Interlingua&#39;),
 (&#39;id&#39;, &#39;Indonesian&#39;),
 (&#39;io&#39;, &#39;Ido&#39;),
 (&#39;is&#39;, &#39;Icelandic&#39;),
 (&#39;it&#39;, &#39;Italian&#39;),
 (&#39;ja&#39;, &#39;Japanese&#39;),
 (&#39;ka&#39;, &#39;Georgian&#39;),
 (&#39;kk&#39;, &#39;Kazakh&#39;),
 (&#39;km&#39;, &#39;Khmer&#39;),
 (&#39;kn&#39;, &#39;Kannada&#39;),
 (&#39;ko&#39;, &#39;Korean&#39;),
 (&#39;lb&#39;, &#39;Luxembourgish&#39;),
 (&#39;lt&#39;, &#39;Lithuanian&#39;),
 (&#39;lv&#39;, &#39;Latvian&#39;),
 (&#39;mk&#39;, &#39;Macedonian&#39;),
 (&#39;ml&#39;, &#39;Malayalam&#39;),
 (&#39;mn&#39;, &#39;Mongolian&#39;),
 (&#39;mr&#39;, &#39;Marathi&#39;),
 (&#39;my&#39;, &#39;Burmese&#39;),
 (&#39;nb&#39;, &#39;Norwegian Bokmal&#39;),
 (&#39;ne&#39;, &#39;Nepali&#39;),
 (&#39;nl&#39;, &#39;Dutch&#39;),
 (&#39;nn&#39;, &#39;Norwegian Nynorsk&#39;),
 (&#39;os&#39;, &#39;Ossetic&#39;),
 (&#39;pa&#39;, &#39;Punjabi&#39;),
 (&#39;pl&#39;, &#39;Polish&#39;),
 (&#39;pt&#39;, &#39;Portuguese&#39;),
 (&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
 (&#39;ro&#39;, &#39;Romanian&#39;),
 (&#39;ru&#39;, &#39;Russian&#39;),
 (&#39;sk&#39;, &#39;Slovak&#39;),
 (&#39;sl&#39;, &#39;Slovenian&#39;),
 (&#39;sq&#39;, &#39;Albanian&#39;),
 (&#39;sr&#39;, &#39;Serbian&#39;),
 (&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
 (&#39;sv&#39;, &#39;Swedish&#39;),
 (&#39;sw&#39;, &#39;Swahili&#39;),
 (&#39;ta&#39;, &#39;Tamil&#39;),
 (&#39;te&#39;, &#39;Telugu&#39;),
 (&#39;th&#39;, &#39;Thai&#39;),
 (&#39;tr&#39;, &#39;Turkish&#39;),
 (&#39;tt&#39;, &#39;Tatar&#39;),
 (&#39;udm&#39;, &#39;Udmurt&#39;),
 (&#39;uk&#39;, &#39;Ukrainian&#39;),
 (&#39;ur&#39;, &#39;Urdu&#39;),
 (&#39;vi&#39;, &#39;Vietnamese&#39;),
 (&#39;zh-hans&#39;, &#39;Simplified Chinese&#39;),
 (&#39;zh-hant&#39;, &#39;Traditional Chinese&#39;)]</pre></td>
        </tr>
      
        <tr>
          <td>USE_L10N</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_HSTS_INCLUDE_SUBDOMAINS</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>STATICFILES_DIRS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>PREPEND_WWW</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_PROXY_SSL_HEADER</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_COOKIE_AGE</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_HTTPONLY</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>DEBUG_PROPAGATE_EXCEPTIONS</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_AGE</td>
          <td class="code"><pre>31449600</pre></td>
        </tr>
      
        <tr>
          <td>MONTH_DAY_FORMAT</td>
          <td class="code"><pre>&#39;F j&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LOGIN_URL</td>
          <td class="code"><pre>&#39;/accounts/login/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>TIME_FORMAT</td>
          <td class="code"><pre>&#39;P&#39;</pre></td>
        </tr>
      
        <tr>
          <td>AUTH_USER_MODEL</td>
          <td class="code"><pre>&#39;auth.User&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DATE_INPUT_FORMATS</td>
          <td class="code"><pre>[&#39;%Y-%m-%d&#39;,
 &#39;%m/%d/%Y&#39;,
 &#39;%m/%d/%y&#39;,
 &#39;%b %d %Y&#39;,
 &#39;%b %d, %Y&#39;,
 &#39;%d %b %Y&#39;,
 &#39;%d %b, %Y&#39;,
 &#39;%B %d %Y&#39;,
 &#39;%B %d, %Y&#39;,
 &#39;%d %B %Y&#39;,
 &#39;%d %B, %Y&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>AUTHENTICATION_BACKENDS</td>
          <td class="code"><pre>[&#39;django.contrib.auth.backends.ModelBackend&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>AUTH_PASSWORD_VALIDATORS</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>PASSWORD_RESET_TIMEOUT_DAYS</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_FILE_PATH</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>CACHE_MIDDLEWARE_ALIAS</td>
          <td class="code"><pre>&#39;default&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_SAVE_EVERY_REQUEST</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>NUMBER_GROUPING</td>
          <td class="code"><pre>0</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_ENGINE</td>
          <td class="code"><pre>&#39;django.contrib.sessions.backends.db&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_FAILURE_VIEW</td>
          <td class="code"><pre>&#39;django.views.csrf.csrf_failure&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_PATH</td>
          <td class="code"><pre>&#39;/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LOGIN_REDIRECT_URL</td>
          <td class="code"><pre>&#39;/accounts/profile/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DECIMAL_SEPARATOR</td>
          <td class="code"><pre>&#39;.&#39;</pre></td>
        </tr>
      
        <tr>
          <td>IGNORABLE_404_URLS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>MIGRATION_MODULES</td>
          <td class="code"><pre>{}</pre></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_STRING_IF_INVALID</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>LOGOUT_URL</td>
          <td class="code"><pre>&#39;/accounts/logout/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_USE_TLS</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>FIXTURE_DIRS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_HOST</td>
          <td class="code"><pre>&#39;localhost&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DATE_FORMAT</td>
          <td class="code"><pre>&#39;N j, Y&#39;</pre></td>
        </tr>
      
        <tr>
          <td>MEDIA_ROOT</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_EXCEPTION_REPORTER_FILTER</td>
          <td class="code"><pre>&#39;django.views.debug.SafeExceptionReporterFilter&#39;</pre></td>
        </tr>
      
        <tr>
          <td>ADMINS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>FORMAT_MODULE_PATH</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>DEFAULT_FROM_EMAIL</td>
          <td class="code"><pre>&#39;webmaster@localhost&#39;</pre></td>
        </tr>
      
        <tr>
          <td>MEDIA_URL</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
        <tr>
          <td>DATETIME_FORMAT</td>
          <td class="code"><pre>&#39;N j, Y, P&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_DIRS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>DISALLOWED_USER_AGENTS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>ALLOWED_INCLUDE_ROOTS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>LOGGING</td>
          <td class="code"><pre>{}</pre></td>
        </tr>
      
        <tr>
          <td>SHORT_DATE_FORMAT</td>
          <td class="code"><pre>&#39;m/d/Y&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TEMPLATES</td>
          <td class="code"><pre>[{&#39;APP_DIRS&#39;: True,
  &#39;BACKEND&#39;: &#39;django.template.backends.django.DjangoTemplates&#39;,
  &#39;DIRS&#39;: [&#39;/mnt/hgfs/wejudge/web/wejudge/templates&#39;],
  &#39;OPTIONS&#39;: {&#39;context_processors&#39;: [&#39;django.template.context_processors.debug&#39;,
                                     &#39;django.template.context_processors.request&#39;,
                                     &#39;django.contrib.auth.context_processors.auth&#39;,
                                     &#39;django.contrib.messages.context_processors.messages&#39;]}}]</pre></td>
        </tr>
      
        <tr>
          <td>TEST_RUNNER</td>
          <td class="code"><pre>&#39;django.test.runner.DiscoverRunner&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>SECURE_SSL_REDIRECT</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>TIME_ZONE</td>
          <td class="code"><pre>&#39;Etc/GMT-8&#39;</pre></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
          <td class="code"><pre>2621440</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_BACKEND</td>
          <td class="code"><pre>&#39;django.core.mail.backends.smtp.EmailBackend&#39;</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_USE_SSL</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>TEMPLATE_CONTEXT_PROCESSORS</td>
          <td class="code"><pre>[&#39;django.contrib.auth.context_processors.auth&#39;,
 &#39;django.template.context_processors.debug&#39;,
 &#39;django.template.context_processors.i18n&#39;,
 &#39;django.template.context_processors.media&#39;,
 &#39;django.template.context_processors.static&#39;,
 &#39;django.template.context_processors.tz&#39;,
 &#39;django.contrib.messages.context_processors.messages&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>SESSION_COOKIE_AGE</td>
          <td class="code"><pre>86400</pre></td>
        </tr>
      
        <tr>
          <td>SETTINGS_MODULE</td>
          <td class="code"><pre>&#39;wejudge.settings&#39;</pre></td>
        </tr>
      
        <tr>
          <td>USE_ETAGS</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGES_BIDI</td>
          <td class="code"><pre>[&#39;he&#39;, &#39;ar&#39;, &#39;fa&#39;, &#39;ur&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>FILE_UPLOAD_TEMP_DIR</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>INTERNAL_IPS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>STATIC_URL</td>
          <td class="code"><pre>&#39;/static/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_PORT</td>
          <td class="code"><pre>25</pre></td>
        </tr>
      
        <tr>
          <td>USE_TZ</td>
          <td class="code"><pre>True</pre></td>
        </tr>
      
        <tr>
          <td>SHORT_DATETIME_FORMAT</td>
          <td class="code"><pre>&#39;m/d/Y P&#39;</pre></td>
        </tr>
      
        <tr>
          <td>TEST_NON_SERIALIZED_APPS</td>
          <td class="code"><pre>[]</pre></td>
        </tr>
      
        <tr>
          <td>PASSWORD_HASHERS</td>
          <td class="code"><pre>u&#39;********************&#39;</pre></td>
        </tr>
      
        <tr>
          <td>ABSOLUTE_URL_OVERRIDES</td>
          <td class="code"><pre>{}</pre></td>
        </tr>
      
        <tr>
          <td>LANGUAGE_COOKIE_PATH</td>
          <td class="code"><pre>&#39;/&#39;</pre></td>
        </tr>
      
        <tr>
          <td>CACHE_MIDDLEWARE_SECONDS</td>
          <td class="code"><pre>600</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_SSL_CERTFILE</td>
          <td class="code"><pre>None</pre></td>
        </tr>
      
        <tr>
          <td>CSRF_COOKIE_HTTPONLY</td>
          <td class="code"><pre>False</pre></td>
        </tr>
      
        <tr>
          <td>DATETIME_INPUT_FORMATS</td>
          <td class="code"><pre>[&#39;%Y-%m-%d %H:%M:%S&#39;,
 &#39;%Y-%m-%d %H:%M:%S.%f&#39;,
 &#39;%Y-%m-%d %H:%M&#39;,
 &#39;%Y-%m-%d&#39;,
 &#39;%m/%d/%Y %H:%M:%S&#39;,
 &#39;%m/%d/%Y %H:%M:%S.%f&#39;,
 &#39;%m/%d/%Y %H:%M&#39;,
 &#39;%m/%d/%Y&#39;,
 &#39;%m/%d/%y %H:%M:%S&#39;,
 &#39;%m/%d/%y %H:%M:%S.%f&#39;,
 &#39;%m/%d/%y %H:%M&#39;,
 &#39;%m/%d/%y&#39;]</pre></td>
        </tr>
      
        <tr>
          <td>EMAIL_HOST_USER</td>
          <td class="code"><pre>&#39;&#39;</pre></td>
        </tr>
      
    </tbody>
  </table>

</div>

  <div id="explanation">
    <p>
      You're seeing this error because you have <code>DEBUG = True</code> in your
      Django settings file. Change that to <code>False</code>, and Django will
      display a standard page generated by the handler for this status code.
    </p>
  </div>

</body>
</html>
